package com.syl.starter.itools.framework.utils.config;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.VerticalAlignment;

/**
 * @author syl
 * @create 2018-10-13 17:42
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class ExcelBaseConfig {
    /**
     * 加粗
     */
    private boolean bold = true;
    /**
     * 是否自动换行
     */
    private boolean wrapText = false;
    /**
     * 是否四周有边框
     */
    private boolean border = true;
    /**
     * 字体
     */
    private String fontName = "微软雅黑";
    /**
     * 背景颜色
     */
    private IndexedColors background = IndexedColors.WHITE1;
    /**
     * 字体颜色
     */
    private IndexedColors color = IndexedColors.BLACK1;
    /**
     * 水平对齐方式
     */
    private HorizontalAlignment horizontalAlignment = HorizontalAlignment.LEFT;
    /**
     * 垂直对齐方式
     */
    private VerticalAlignment verticalAlignment = VerticalAlignment.CENTER;

}
